package com.learn.initbean.learnaware;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author daify
 * @date 2019-03-18
 */
public class MyAwareTest02 {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        MyAware applicationAware = (MyAware) applicationContext.getBean("myAware");
        applicationAware.display();
    }
}
